//
//  OrderDB.h
//  Order
//
//  Created by funny on 12-3-21.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface OrderDB : NSObject {
	NSString *name;
	
	float packagePrice;
	float singlePrice;
	
	NSInteger packageCount;
	NSInteger singleCount;
}

@property (nonatomic, readonly) NSString *name;
@property (nonatomic, readonly) float packagePrice;
@property (nonatomic, readonly) float singlePrice;

@property (nonatomic, assign) NSInteger packageCount;
@property (nonatomic, assign) NSInteger singleCount;

+ (OrderDB *)orderDBWithName:(NSString *)newName andPackagePrice:(float)newPackagePrice andSinglePrice:(float)newSinglePrice;

- (float)calculateTotalPrice;
- (void)resetCount;

@end
